﻿using System.Windows.Forms;
using Tiwo.Design;
using Tiwo.Editor.Demo;
using Tiwo.Util;

namespace Tiwo.Editor
{
    public partial class SchemeEditorForm : Form
    {
        public SchemeEditorForm()
        {
            InitializeComponent();

            schemeEditor.LoadScheme(new Scheme());
            schemeEditor.Environment.AddTypeSource(new TypeSource<Convertor>());
            schemeEditor.Environment.AddTypeSource(new TypeSource<Creator>());
            schemeEditor.Environment.AddTypeSource(new TypeSource<Deletor>());
            schemeEditor.Environment.AddTypeSource(new TypeSource<Filter>());

            schemeEditor.Environment.AddTypeSource(new IntegerType());
            schemeEditor.Environment.AddTypeSource(new StringType());
            schemeEditor.Environment.AddTypeSource(new LongType());
        }
    }
}
